<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Welcome OnlineBidding</title>
</h:head>
<h:body>
	<h:form id="form">
		<p:panel header="Online Bidding - Login">
			<p:messages />
			<h:panelGrid columns="2">
				<p:outputLabel for="name" value="Nome:" />
				<p:inputText id="name" value="#{userController.user.name}"
					required="true" requiredMessage="Digite seu Nome!" />

				<p:outputLabel for="password" value="Senha:" />
				<p:password id="password" value="#{userController.user.password}"
					required="true" requiredMessage="Digite sua Senha!" />

				<p:outputLabel />
				<h:commandButton value="Entrar" action="#{userController.login()}" />
			</h:panelGrid>
		</p:panel>
	</h:form>
</h:body>
</html>